#include <sys/types.h>
       #include <sys/stat.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#define BLKSIZE 4096
int main(int argc,char *argv[ ])
{
	int fd,i,m,n;
	char buf[BLKSIZE],dummy;
	fd=0;
	if(argc>1)
	{
		fd=open(argv[1],O_RDONLY);
		if(fd<0) exit(1);
	}
	while(n=read(fd,buf,BLKSIZE)){
		m=write(1,buf,n);
	}
}

